﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="AdminTitle.aspx.cs" Inherits="TravelLink.WebApp.Admin.AdminTitle" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td>
                <dx:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="False" Text="新增">
                    <ClientSideEvents Click="function(s, e) {
	agv.AddNewRow();
}" />
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="LinqDataSource1" KeyFieldName="Idx"  ClientInstanceName="agv">
        <Columns>
            <dx:GridViewCommandColumn ButtonType="Button" VisibleIndex="4">
                <EditButton Text="修改" Visible="True">
                </EditButton>
                <NewButton Text="添加">
                </NewButton>
                <DeleteButton Text="删除" Visible="True">
                </DeleteButton>
                <CancelButton Text="取消" Visible="True">
                </CancelButton>
                <UpdateButton Text="保存" Visible="True">
                </UpdateButton>
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
            </dx:GridViewCommandColumn>
            <dx:GridViewDataTextColumn Caption="编号" FieldName="Idx" ReadOnly="True" 
                VisibleIndex="0" Width="100px">
                <EditFormSettings Visible="False" />
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="中文名" FieldName="CName" VisibleIndex="1" 
                Width="200px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="英文名" FieldName="EName" VisibleIndex="2" 
                Width="200px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="序号" FieldName="SortID" VisibleIndex="3" 
                Width="100px">
            </dx:GridViewDataTextColumn>
        </Columns>
        <Settings ShowFilterRow="True" />
    </dx:ASPxGridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True" EntityTypeName="" OrderBy="SortID" 
        TableName="TL_Title" EnableViewState="False">
    </asp:LinqDataSource>
</asp:Content>
